/*
 * @Author: yxfan
 * @Date: 2023-12-25 14:18:15
 * @LastEditTime: 2023-12-25 14:48:43
 * @FilePath: /umi-demo/src/pages/demo/AntdLocale/index.jsx
 * @Description: antd多语言测试
 */
import { Modal, ConfigProvider, TimePicker, Empty } from 'antd';

const modalLocale = {
    Modal: {
        okText: '这是我自定义的确定',
        // cancelText: '这是我自定义的取消',
        justOkText: 'yxfan',
    },
    Empty: {
        description: '没数据',
    },
    DatePicker: {
        lang: {
            ok: 'xi',
        },
        timePickerLocale: {
            placeholder: '就是现在',
            rangePlaceholder: ['Start time', 'End time'],
        },
    },
};

export default () => {
    return (
        <ConfigProvider locale={modalLocale}>
            <Empty></Empty>
            <TimePicker />
            <Modal>
                <TimePicker />
            </Modal>
        </ConfigProvider>
    );
};
